/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pos.Driving;

import pos.Driving.Train.Train;
import pos.ICommand;

/**
 *
 * @author Administrator
 */
public class CommandGetTrainRef implements ICommand{
    private Train receiver;
    public CommandGetTrainRef(Train receiver) {
        this.receiver=receiver;
    }
    /**
     * @return 返回Train的引用
     */
    public Object execute(Object Param) {
        return receiver;
    }
}
